package com.woniuxy.entity;

import com.woniuxy.intface.Person;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author：向天浩
 * @Date：2022/1/18 16:32
 * @Description :TODO
 */

public class Japan implements Person {
    int age;
    String name;
    America America;
    List List;
    List<Map> Map;//list中有map
    List<America>ListAmerica;//list中有引用
    Map<String,String>String;//Map
    Set<Integer>Integer;//Set

    public Japan() {
    }

    public Japan(int age, java.lang.String name, com.woniuxy.entity.America america, java.util.List list, java.util.List<java.util.Map> map, java.util.List<com.woniuxy.entity.America> listAmerica, java.util.Map<java.lang.String, java.lang.String> string, Set<java.lang.Integer> integer) {
        this.age = age;
        this.name = name;
        America = america;
        List = list;
        Map = map;
        ListAmerica = listAmerica;
        String = string;
        Integer = integer;
    }

    @Override
    public java.lang.String toString() {
        return "Japan{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", America=" + America +
                ", List=" + List +
                ", Map=" + Map +
                ", ListAmerica=" + ListAmerica +
                ", String=" + String +
                ", Integer=" + Integer +
                '}';
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(java.lang.String name) {
        this.name = name;
    }

    public void setAmerica(com.woniuxy.entity.America america) {
        America = america;
    }

    public void setList(java.util.List list) {
        List = list;
    }

    public void setMap(java.util.List<java.util.Map> map) {
        Map = map;
    }

    public void setListAmerica(java.util.List<com.woniuxy.entity.America> listAmerica) {
        ListAmerica = listAmerica;
    }

    public void setString(java.util.Map<java.lang.String, java.lang.String> string) {
        String = string;
    }

    public void setInteger(Set<java.lang.Integer> integer) {
        Integer = integer;
    }

    @Override
    public void eat() {

        System.out.println("日本");
    }
}
